package com.hoas.quickstart.threads.chapter02.chapter02_2_11_01;

public class Service {

    synchronized public void methodA() {
        System.out.println("methodA begin");

        boolean isCountinueRun = true;
        while (isCountinueRun) {

        }

        System.out.println("methodA end");

    }


    synchronized public void methodB() {
        System.out.println("methodB begin");

        System.out.println("methodB end");

    }

}
